#!/bin/bash

log=$HOME/.local/var/log/pg_server.log
data_path=$HOME/.local/var/postgres
# nohup postgres -D $data_path >$log 2>&1 </dev/null &
# su postgres -c "pg_ctl -D $data_path -l $log start"
su postgres -c "pg_ctl -D /var/lib/postgres/data -l $log start"
